package com.example.springboot.mapper;

import com.example.springboot.entity.UserAddress;

import java.util.List;

public interface UserAddressMapper {

    void insertUserAddress(UserAddress userAddress);


    List<UserAddress> selectUserAddresses(Integer userId);


    int countUserAddresses(Integer userId);


    void updateUserAddress(UserAddress userAddress);


    void deleteUserAddress(Integer addressId);


    void resetDefaultAddress(Integer userId);
    UserAddress selectDefaultAddress(Integer userId);
}
